package com.beiding.my.mql;

import java.util.List;

public abstract class MQLExecutor {

    //编译之后应该是jpa可执行的常规语法
    protected String sql;

    public MQLExecutor(String sql) {
        this.sql = sql;
    }

    //查询一个
    public Object queryOne(Object... params) {
        throw new RuntimeException("不支持的操作");
    }

    //查询列表
    public List queryList(Object... params) {
        throw new RuntimeException("不支持的操作");
    }

    //查询分页
    public List queryPage(long currentPage, int pageSize, Object... params) {
        throw new RuntimeException("不支持的操作");
    }

    //删除
    public int delete(Object... params) {
        throw new RuntimeException("不支持的操作");
    }

    //更新
    public int update(Object... params) {
        throw new RuntimeException("不支持的操作");
    }

    //插入
    public int insert(Object... params) {
        throw new RuntimeException("不支持的操作");
    }

    public void exe(Object... params) {
        throw new RuntimeException("不支持的操作");
    }

}
